using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace StockAnalyze
{
    public partial class StockDataViewControl : UserControl
    {
        public DateTime StartDate
        {
            get { return this.priceGraph1.StartDate; }
            set { this.priceGraph1.StartDate = value; }
        }
        public DateTime EndDate
        {
            get { return this.priceGraph1.EndDate; }
            set { this.priceGraph1.EndDate = value; }
        }
        public StockDataViewControl()
        {
            InitializeComponent();
            this.priceGraph1.StartDate = this.dtStart.Value;
            this.priceGraph1.EndDate = this.dtEnd.Value;
        }

        private void PriceGraph_Paint(object sender, PaintEventArgs e)
        {
            
        }

        private void dtStart_ValueChanged(object sender, EventArgs e)
        {
            this.priceGraph1.StartDate = this.dtStart.Value;
        }

        private void dtEnd_ValueChanged(object sender, EventArgs e)
        {
            this.priceGraph1.EndDate = this.dtEnd.Value;
        }

        private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e)
        {

        }
    }
}
